function decod(s) {
  if(typeof decodeURIComponent == 'function') return decodeURIComponent(s);
  else return unescape(s);
}
if (typeof(admeld_custom1) == "undefined") {
   // Assume running in main page: take the location
   var admeld_custom1 = decod(window.location.href);
   var admeld_custom2 = 7; // page location
} else {
// admeld_custom1 already defined
}
